package com.hjq.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjq.common.utils.PageUtils;
import com.hjq.mallproduct.entity.AttrEntity;
import com.hjq.mallproduct.entity.AttrGroupEntity;
import com.hjq.mallproduct.entity.vo.AttrGroupVO;
import com.hjq.mallproduct.entity.vo.AttrRelationVO;
import com.hjq.mallproduct.entity.vo.ItemVO;
import com.hjq.mallproduct.entity.vo.SpuItemAttrGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author Hjq
 * @email 1484397309@qq.com.com
 * @date 2022-05-24 13:33:42
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catId);



    List<AttrEntity> queryAllAttrPage(Long attrGroupId);

    void deleteAttrRelation(List<AttrRelationVO> attrRelationVOList);

    PageUtils queryPageOfNotInAttrGroup(Map<String, Object> params, Long attrGroupId);


    List<AttrGroupVO> getAllGroupWithAttr(Long catId);

    List<SpuItemAttrGroupVO> getAttrGroupWithAttrBySpuId(Long spuId, Long catalogId);
}

